package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 item
 * 
 * @author ruoyi
 * @date 2022-04-24
 */
public class Item extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 简述 */
    @Excel(name = "简述")
    private String sellPoint;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 缩略图 */
    @Excel(name = "缩略图")
    private String fontImage;

    /** 分类id */
    @Excel(name = "分类id")
    private Long catId;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 1级分类id */
    @Excel(name = "1级分类id")
    private Long grandfatherCatId;

    /** 商品详情信息 */
    private List<ItemDesc> itemDescList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setSellPoint(String sellPoint) 
    {
        this.sellPoint = sellPoint;
    }

    public String getSellPoint() 
    {
        return sellPoint;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setFontImage(String fontImage) 
    {
        this.fontImage = fontImage;
    }

    public String getFontImage() 
    {
        return fontImage;
    }
    public void setCatId(Long catId) 
    {
        this.catId = catId;
    }

    public Long getCatId() 
    {
        return catId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }
    public void setGrandfatherCatId(Long grandfatherCatId) 
    {
        this.grandfatherCatId = grandfatherCatId;
    }

    public Long getGrandfatherCatId() 
    {
        return grandfatherCatId;
    }

    public List<ItemDesc> getItemDescList()
    {
        return itemDescList;
    }

    public void setItemDescList(List<ItemDesc> itemDescList)
    {
        this.itemDescList = itemDescList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("sellPoint", getSellPoint())
            .append("price", getPrice())
            .append("fontImage", getFontImage())
            .append("catId", getCatId())
            .append("status", getStatus())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createdTime", getCreatedTime())
            .append("updatedTime", getUpdatedTime())
            .append("grandfatherCatId", getGrandfatherCatId())
            .append("itemDescList", getItemDescList())
            .toString();
    }
}
